package com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser;

import com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.monitor.Relations;
import com.google.code.irouter.portal.client.dashboard.main.center.managers.relation.browser.monitor.Trend;
import com.gwtext.client.core.Margins;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.BorderLayout;
import com.gwtext.client.widgets.layout.BorderLayoutData;

public final class Monitor extends Panel {

	public Monitor() {
		super();
		this.setId(Monitor.class.getName());

		BorderLayoutData trendLayout = new BorderLayoutData(RegionPosition.NORTH);
		trendLayout.setMargins(new Margins(5, 5, 5, 5));
		BorderLayoutData relationsLayout = new BorderLayoutData(RegionPosition.CENTER);
		relationsLayout.setMargins(5, 5, 5, 5);
		
		this.setLayout(new BorderLayout());
		this.setBorder(false);
		this.add(new Trend(), trendLayout);
		this.add(new Relations(), relationsLayout);
	}
}
